package org.neuedu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.neuedu.entity.SettleCategory;
import org.neuedu.mapper.SettleCategoryMapper;
import org.neuedu.service.SettleCategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lzw
 * @since 2024-11-11
 */
@Service
@CacheEvict(value = "settlecategory",key="'caiwu'")
public class SettleCategoryServiceImpl extends ServiceImpl<SettleCategoryMapper, SettleCategory> implements SettleCategoryService {

    @Override
    @Cacheable(value = "caiwu",key="'settleCategory'")
    public List<SettleCategory> getActive() {
        QueryWrapper<SettleCategory> queryWrapper=new QueryWrapper();
        queryWrapper.eq("delmark",1);
        return this.list(queryWrapper);
    }
}
